import request from '@/utils/request'

// 查询好友列表
export function listChatUserFriend(query) {
  return request({
    url: '/weblog/chatUserFriend/list',
    method: 'get',
    params: query
  })
}

// 查询好友详细
export function getChatUserFriend(id) {
  return request({
    url: '/weblog/chatUserFriend/' + id,
    method: 'get'
  })
}

// 新增好友
export function addChatUserFriend(data) {
  return request({
    url: '/weblog/chatUserFriend',
    method: 'post',
    data: data
  })
}

// 修改好友
export function updateChatUserFriend(data) {
  return request({
    url: '/weblog/chatUserFriend',
    method: 'put',
    data: data
  })
}

// 删除好友
export function delChatUserFriend(id) {
  return request({
    url: '/weblog/chatUserFriend/' + id,
    method: 'delete'
  })
}
export function getFriend(query) {
  return request({
    url: '/weblog/chatUserFriend/getFriend',
    method: 'get',
    params: query
  })
}


export function addFriendJs(query) {
  return request({
    url: '/weblog/chatUserFriend/addFriend',
    method: 'get',
    params: query
  })
}
export function changeFriend(query) {
  return request({
    url: '/weblog/chatUserFriend/changeFriend',
    method: 'get',
    params: query
  })
}
